<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>"/>
<link rel="shortcut icon" href="images/store.png" /><!--图片log  -->
<title>快速下单</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport"
	content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<link href="css/base.css" rel="stylesheet">
<link href="css/shopcar.css" rel="stylesheet">
<link href="css/toTop.css?v=0715" rel="stylesheet">
<link href="css/quickcart.css?v=0710" rel="stylesheet">
</head>
<body style="padding: 0px 0px 55px;background-color: #fff;">
	<div class="by_w" id="by_w">
		<div class="m_pagetop" align="center">
			<span class="m_goback" onclick="document.location.href = 'javascript:history.go(-1)';"></span>
			<span class="m_title">快速下单</span>
		</div>
		<div style="min-height: 490px;" class="m_wap" id="min_hdiv"
			align="center">
			<div style="padding-top: 10px">
				<input id="prosearch" placeholder="请输入要搜索的商品" />
			</div>
			<div id="shopcar" class="shopcar">
				<div class="m_carsj">
					<div class="m_prd_d">
						<c:forEach items="${quickcartList}" var="product">
							<table class="m_c_tab">
								<tbody>
									<tr>
										<td rowspan="2" align="left" valign="top" width="10%">
										<span class="m_qx p_ck_one  p_ck_one130083" tid="${product.spid}"></span> 
										<input id="minnum" value="${product.zhongbz}" hidden />
										<input id="priceZhj" value="${product.price}" hidden />
                                        <input id="priceChl" value="${product.priceChl}" hidden />
                                        <input id="jlgg" value="${product.jlgg}" hidden />
                                        <input id="stock" value="${product.productBal[0].kxshl}" hidden />
										</td>
										<td rowspan="2" class="pic">
											<a class="m_p_plink touri" href="javascript:;"> 
											<img src="http://www.hnhcyy.com/resource/img/${product.spid}/10.jpg" height="88px" width="90px" />
											</a>
										</td>
										<td class="relative">
										<c:if test="${product.zengsong!=null}">
											<span class="gift">礼</span>
										</c:if>
											<a href="Shop/Detail?productid=${product.spid}&sjid=${sjid}" class="m_p_name escp">${product.spmch}</a>
											<span id="zjg" class="f60 p_dg_jg">￥<span class="price">
                                        <c:set var="priceChl" value="${product.priceChl}"></c:set>
                                        <c:choose>
											<c:when test="${priceChl!=null&&priceChl!=0}">
												${priceChl}
											</c:when>
                                        	<c:otherwise>
												${product.price}
                                        	</c:otherwise>
                                        </c:choose>
											</span></span>
											<span class="m_p_cmbz"> 
											<span class="m_p_cm2">批号：≥
												<em class="pihao" style="font-style: initial;">
												<c:choose>
													<c:when test="${product.pihao !=null&&product.pihao !=''}">
														${product.pihao}
													</c:when>
													<c:otherwise>
														库存不足
													</c:otherwise>
												</c:choose>
												</em>
											</span>
											<span class="lingshoujia">￥${product.lingshoujia}</span>
											</span>
											<span class="guige">规格：${product.shpgg}</span>
										</td>
									</tr>
									<!--实现加减-->
									<tr>
										<td align="left" valign="middle"><span class="m_p_pts">
											<div style="color: #999999" class="m_pp bbox icon-reduce">
											</div> <input class="m_dl_sl bbox" maxlength="4"
											value='${product.zhongbz}' type="text">
											<div class="m_ps bbox icon-add"></div> <!-- <span class="m_p_del icon-delete">
                                               </span> -->
					                        <input class="m_dl_addcar m_dl_addcar2" value="加入购物车" type="button">
										</span></td>
									</tr>
								</tbody>
							</table>
						</c:forEach>
					</div>
					<!-- <div align="center" class="m_maddmore none">
						<span>加载更多...</span>
					</div> -->
					<div id="loading" style="margin:4px 0px 9px 0px">
						<img src="images/ajax-loader.gif">
						<p>加载中...</p>
					</div>
				</div>
			</div>
			<div class="m_all_b bbox">
				<span class="m_qx car_ck_all"></span><span class="m_bqx">全选</span> 
               	<!-- <span class="cart_i"></span>
                <span class="cart_i_p none_im"></span> -->
				<input class="m_sub_btn f_r" value="结算(0)" id="count" type="button">
				<span class="m_zjg f_r">合计：<span class="m_a_prie">￥199</span></span>
			</div>
		</div>
		<!--返回顶部  -->
		<div class="return top" style="bottom:58px">
	    	<a href="javascript:;"><img src="//s.juancdn.com/jpwebapp_v1/images_v1/icon/back-top.png?ts=43cd703b21136a3e_1480432233" ></a>
		</div>
		<!--购物车图标  -->
		<div id="shortcut">
			<a href="Shop/Cart/Index?sjid=${sjid}"> 
			<img src="images/cart.png">
			</a>
		</div>
	</div>
<script src="js/jquery-1.8.3.min.js"></script>
<script src="js/jquery-html5Validate.js"></script>
<script src="js/addmore4quickcart.js?v=0517"></script>
<script src="js/global.js?v=0715"></script>
<script src="js/cartCommon.js?v=0707"></script>
<script src="js/quickCart.js?v=0719"></script>
<script src="js/post.js?v=0710"></script>
<script>
	var sjid = ${sjid};
</script>
</body>
</html>